﻿using System.Collections.Generic;
using DevFramework.Core.Aspects.CacheAspects;
using DevFramework.Core.Aspects.TransactionAspects;
using DevFramework.Business.Abstract;
using DevFramework.DataLayer.Abstract;
using DevFramework.Entities.Concrete;
using DevFramework.Business.Abstract;
using DevFramework.Entities.Concrete;

namespace DevFramework.Business.Concrete.Managers
{
   
    public class CategoryManager : ICategoryService
    {
        private readonly ICategoryDal _categoryDal;

        public CategoryManager(ICategoryDal categoryDal)
        {
            _categoryDal = categoryDal;
        }
     
        public List<Category> GetAll()
        {
            return _categoryDal.GetList();
        }
       
        public List<Category> HepsiniGetir(int a)
        {
            return _categoryDal.GetList();
        }
 
        public Category Add(Category category)
        {
           return _categoryDal.Add(category);
        }
    }
}
